<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>爱贝儿医</title>
    <link rel="stylesheet" href="business/style/common.css?<?=版本?>">
</head>
<script type="text/javascript" src="business/js/jquery.js"></script>
<script src="business/resource/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="app/js/group/groupUsers.js"></script>
<script type="text/javascript">

</script>

<body>
<div class="header"><a href="<?=$websoke_qun_url?>"   class="return">返回</a><span class="qun-unit"><strong></strong></span></div>
<div id="unit-list">
<input type="hidden" id="qun_user_id" value="<?=$group_user_id?>"/>
    <?php
		  if(count($no_group_user)){
	 ?>
    <!--循环 begin-->
    <div class="qun-unit-list">
        <div class="qun-title">新申请的成员:</div>
        <ul>
            <?php
					foreach($no_group_user as $value){
						$头像 ='';
						$认证 = '';

						if($value['头像']) $头像 = $value['头像']; else $头像 = "cache/card_img/top_index.jpg";
						if($value['认证'] >1) $认证 ='<img src="business/style/rz.png" alt="">'; else  $认证 ='';
            echo  '<li><a href="#"><div class="q-img"><img src="'.$头像.'" alt=""></div><div class="p-cont"><div class="p-name"><span class="name">'.$value['name'].'</span><span class="no-renzheng">'.$认证.'</span><div class="delete-btn" id="shenhe_del" onclick="f审核删除成员('.$value['id'].')">拒绝</div><div id="shenhe" class="pass-btn" onclick="审核成员('.$value['id'].')" >通过</div></div><div class="p-position">'.$value['医院'].' '.$value['职务'].'</div></div></a> </li>';
            }
            ?>


        </ul>
    </div>
    <?php  }?>
    <!--循环 end-->
    <div class="qun-unit-list">

        <div class="qun-title">群成员:
            <?php
						if($is_group_user['角色']=='群主'){
							echo '(您可以设置一名群助手管理群)';
						}else{
							echo "";
						}

					?>
        </div>

        <ul>

            <?php
					foreach($group_user as $value){
						$头像 ='';
						$认证 = '';
						$删除 = '';
						$助手操作 ='';
						if($value['角色']=='已审核' &&$is_group_user['角色']!=='已审核')$删除 = '<div class="remove" id="remove" onclick="删除群成员('.$value['id'].')">移除</div> ';
    if($value['头像']) $头像 = $value['头像']; else $头像 = "cache/card_img/top_index.jpg";
    if($value['认证'] >1) $认证 ='<img src="business/style/rz.png" alt="">'; else  $认证 ='';

    if($is_group_user['角色']=='群主' && $value['角色'] !='群主'){

    if($group_detail->data['助手id'] > 0 ){
    if($value['角色']=='助手' )$助手操作 ='<div class="aide aideclick"  id="aideclick" onclick="取消群助手('.$value['id'].')">取消群助手</div>';

    } else $助手操作 ='<div class="aide" id="aideshezhi" onclick="设置成为群助手('.$value['id'].')" >设为群助手</div>';
    }
    echo  '<li><a href="#"><div class="q-img"><img src="'.$头像.'" alt=""></div><div class="p-cont"><div class="p-name"><span class="name">'.$value['name'].'</span><span class="no-renzheng">'.$认证.'</span>'.$删除.$助手操作.' </div><div class="p-position">'.$value['医院'].' '.$value['职务'].'</div></div></a></li>';
    }

    ?>
    </ul>
</div>

</div>
<?php
if($is_group_user['角色']!= '群主' )echo '<div class="qun-exit-btn" id="tuichuqun" onclick="退出群()">退出该群</div>';
?>
</body>
</html>

